/*
** check_params.c for zappy in /home/morgan_t/zappy-2015-2014s-suon_a/server
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Mon Jun 18 17:30:22 2012 thomas morgant
** Last update Thu Jul  5 11:59:46 2012 thomas morgant
*/

#include "server.h"
#include "conf.h"
#include "check.h"

bool	check_params(t_serv *serv, int ac, char **av)
{
  if (ac != 14)
    {
      printf(USAGE);
      return (false);
    }
  else
    {
      check_port(serv, ac, av);
      check_width(serv, ac, av);
      check_height(serv, ac, av);
      check_name(serv, ac, av);
      check_clients(serv, ac, av);
      check_time(serv, ac, av);
      return (true);
    }
  return (false);
}
